home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11966 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: string search?
  5. Message-ID: <1996Mar27.220051.1261@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>
  11. Date: Wed, 27 Mar 1996 22:00:51 GMT
  12.  
  13. In article <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>, rmor1@ix.netcom.com(Ricardo Mor ) writes:
  14. >    How can I search for a string of characters within another string?
  15. >for example..
  16. >
  17. >    string = "NEXT_TIME";
  18. >    
  19. >    string2 = "NEXT";
  20. >
  21. >    how can I find  string2 in string?
  22.  
  23. Look in your compiler reference manual for functions like "strstr" (I
  24. forget whether this is ANSI or not - I can't find my reference) or the
  25. like. Or in a text on algorithms.
  26.  
  27.                                 Z
  28.  
  29.  
  30. -- 
  31. -------------------------------------------------------------------------
  32. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  33. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  34. -------------------------------------------------------------------------
  35.